package cn.stylefeng.guns.modular.gridsystem.temperature.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;
import cn.stylefeng.guns.modular.gridsystem.model.param.BizGatewayChannelParam;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class BizTemperatureConfigParam extends BaseParam {


    /**
     * 字典排序
     */
    private Long dictSort;

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {edit.class, delete.class})
    private Integer id;

    /**
     * 通道
     */
    @NotNull(message = "字典名称", groups = {add.class})
    private String dictName;

    /**
     * 字典标签
     */
    @NotNull(message = "字典标签", groups = {add.class})
    private String dictLabel;

    /**
     * 字典键值
     */
    @NotNull(message = "字典键值", groups = {add.class, edit.class, BizGatewayChannelParam.mark.class})
    private String dictValue;


    @NotNull(message = "字典类型", groups = {add.class})
    private String dictType;

    /**
     * 是否默认（Y是 N否）
     */
    private String isDefault;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    private String test;


    /**
     * 解绑校验分组
     */
    public @interface unbinding {
    }

    /**
     * 标记校验分组
     */
    public @interface mark {
    }

}
